package com.neusoft.bizcore.activiti.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.neusoft.bizcore.activiti.model.PendingData;
import com.neusoft.bizcore.web.support.Searchable;

public interface CustomizedPendingDataRepository {

    List<PendingData> index(Searchable searchable);

    Page<PendingData> search(Pageable pageable, Searchable searchable);

    List<PendingData> findByInstanceIdAndNodeId(PendingData dto);

    List<PendingData> findByClazzName(String clazzName);

    List<PendingData> findByWorkNum(String workNum);

    List<PendingData> findByInstanceId(String instanceId);

    List<PendingData> findByWorkNumAndNodeId(String workNum, String nodeId);
}
